package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("invitation_auth")
public class InvitationAuth extends Model<InvitationAuth> {
    /**
     * 授权ID
     */
    @ApiModelProperty(hidden = true)
    @TableId("auth_id")
    private Long authId;
    /**
     * 邀请函ID
     */
    private Long invitationId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 创建时间
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    @Override
    protected Serializable pkVal() {
        return authId;
    }
}